

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:untitled/pages/mywidgets.dart';

class ChargeWidget extends StatefulWidget {
  const ChargeWidget({Key? key}) : super(key: key);

  @override
  State<ChargeWidget> createState() => _ChargeWidgetState();
}

class _ChargeWidgetState extends State<ChargeWidget> {
  @override
  Widget build(BuildContext context) {
    return Container(
      decoration: BoxDecoration(
        boxShadow: [BoxShadow(color: Colors.grey,blurRadius: 1)],
        color: Colors.white,
        borderRadius: BorderRadius.all(Radius.circular(3)),
      ),
      margin: EdgeInsets.all(10),
      padding: EdgeInsets.all(15),
      child: Column(
        children:[
          Row(
            mainAxisAlignment:MainAxisAlignment.spaceBetween,
            children: [
              Column(
                children: [
                  Text("152****9775",style:TextStyle(fontSize: 22.sp,fontWeight: FontWeight.w600) ,),
                  SizedBox(height:10.h),
                  Text('默认号码(中国移动)')
                ],
              ),
              Container(
                width: 50.w,
                height: 50.h,
                alignment: Alignment.topRight,
                child: Image.asset('assets/g8.png'),
              )
            ],
          ),
           SizedBox(height: 15.h,),
           Row(
            mainAxisAlignment: MainAxisAlignment.spaceAround,
            children: [
              moneyButton('30元'),
              moneyButton('50元'),
              moneyButton('100元'),
              moneyButton('300元'),
            ],
           )
        ]
      ),
     

    );
    
  }
}